import { getStudents as _getStudents } from './student';
import axios from '../utils/axios';

export const getAllStudents = _getStudents;

/**
 * Admin API to retrieve all students
 * @returns A promise that resolves to an array of Student objects
 */
export const getAdminStudents = async () => {
  const response = await axios.get('/api/admin/students');
  return response.data;
};

export interface Student {
  id: number;
  name: string;
  studentId: string;
  class: string;
  email: string;
  phone: string;
  status: string;
  lastLogin?: string;
  progress?: number;
} 